package task03;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/8 8:43
 * @description:
 */
public class Demo {

  public static void main(String[] args) {

    Product p1=new Product();
    p1.setProductName("茶叶蛋");
    Product p2=new Product();
    p2.setProductName("酸奶");

    Market market=new Market();
    market.setMarketName("十足");
    Product[] p ={p1,p2};
    market.setProducts(p);

    Product p3=new Product();
    p3.setProductName("作业");

    Customer customer=new Customer();
    customer.setName("小王");
    customer.shopping(market,p1);
    customer.shopping(market,p3);

  }
}
